<#setting number_format="0.##">
<#setting locale="en_US">
<h1>Sale Detail</h1>
<#if result??>
  ID:&nbsp;${result.id}<br/>
  Date:&nbsp;${result.date?string("dd/MM/yyyy")}<br/>
  <#if result.customer??>
    Customer Name: &nbsp;${result.customer.name}<br/>
    Customer Type: ${result.customer.cuil}<br/>
  </#if>
  Sale Amount:&nbsp;$&nbsp;${result.total?string("#.00")}<br/>
  Items in sale:
  <table width='100%' border='0' class='results bottomMargin' id='userList'
      cellpadding='0' cellspacing='0'>
      <col width="70%" />
      <col width="10%" />
      <col width="10%" />
      <col width="10%" />
      <thead>
        <tr>
        <th>Item Name</th>
        <th>P. Unit</th>
        <th>Amount</th>
        <th>P. Total</th>
        </tr>
      </thead>
      <tbody>
        <#list result.items as item>
          <tr>
            <td>${item.product.name}</td>
            <td>${item.price}</td>
            <td>${item.amount}</td>
            <td>${item.price*item.amount}</td>
          </tr>
        </#list>
    </tbody>
  </table>
</#if>